package per.xue.carid_booking.entity;


import javax.persistence.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-05-22
 */
@Data
@ApiModel(value="user")
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user")
public class User implements Serializable {



    /**
     * 用户账号
     */
    
        @Id
        @Column(name = "userId")
                @ApiModelProperty(value = "用户账号",name = "userId",dataType = "String")
        private String userId;

    /**
     * 用户密码
     */
    @Column(name = "password")
        @ApiModelProperty(value = "用户密码",name = "password",dataType = "String")
        private String password;

    /**
     * 用户角色，user跟admin
     */
    @Column(name = "role_name")
        @ApiModelProperty(value = "用户角色，user跟admin",name = "roleName",dataType = "String")
        private String roleName;


}


